package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import pojo.User;
import service.UserService;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * Created by 79430 on 2019/1/3.
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @RequestMapping("/login")
    public String Login(User user, HttpSession session){
     //   System.out.println("1");
     //  User u=userService.Login(user);
       // System.out.println(u.getUserName());
      //  if(u!=null){
       //     session.setAttribute("user",u);
        //    return "blank";
       // }
        return "sign_in";
    }
    @RequestMapping("/jsp")
    public String Login(){
        return "sign_in";
    }

}
